﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Utilities.General.Message
{
    /// <summary>
    /// 本为示例；只需要在项目建立一个简单工厂就行了；
    /// </summary>
    public static class PushFactory
    {
        public static Push.Push GetPush(PushType args)
        {
            switch (args)
            {
                case PushType.email: { return new Push.Mail.MailPush(); }
                case PushType.sms: { return new Push.SMS.SmsPush(); }
                case PushType.sysmsg: { return new Push.SysMsg.SysMsgPush(); }
                case PushType.wechat: { return new Push.Wechat.WechatPush(); }
                default: { return default(Push.Push); }
            }
        }
    }
}
